home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-12-27 | 840 b | 22 lines | [TEXT/KEEN] |
- # $hAWK_Index_Fixer: if you edit your hAWK User’s Manual
- # (your author here does that a lot) you can repair the
- # Active Index at the end of the manual with this program.
- # You’ll need to know how many lines you added, and where.
- # In brief:
- # if ($i+0 > line where you inserted new material)
- # $i += number of consecutive lines added
- # - if you delete lines, use $i -= num lines deleted.
- #Needless to say, run it on the index only; one way (safe)
- #is to copy the Active Index to an untitled window, then
- #run this program on “All of front text”; afterwards, take
- #the results from stdout and paste over the old Active Index.
-
- { for (i = 2; i <= NF; ++i)
- {
- #CHANGE THE TWO NUMBERS on the next lines
- #No not the zero the other two
- if ($i+0 > 798) #line where new material inserted
- $i += 4; #number of lines added
- }
- print
- }